import { Button, ErrorBlock, Space } from "antd-mobile";
import { useHistory } from "react-router-dom";
export default function NotFound() {
  const history = useHistory();
  return (
    <div>
      <ErrorBlock fullPage status="empty">
        <Space>
          <Button onClick={() => history.push("/")} color="primary">
            返回首页
          </Button>
          <Button onClick={() => history.go(-1)} color="primary">
            后退
          </Button>
        </Space>
      </ErrorBlock>
    </div>
  );
}
